package com.lebang.mapper;

import com.lebang.entity.sys.AppMain;
import com.lebang.example.AppMainExample;
import com.lebang.model.MainResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * AppMainMapper继承基类
 */
@Mapper
public interface AppMainMapper extends MyBatisBaseDao<AppMain, Integer, AppMainExample> {

    List<MainResult> selectMainBybrand(@Param("brand") String brand);

    List<Map> getSql(@Param("sql") String sql);

    List<AppMain> getSon(@Param("id") Integer id, @Param("brand") String brand, @Param("version") String version);

    List<AppMain> selectByType(@Param("version") String version, @Param("brand") String brand, @Param("type") Integer type);
}